package ma.ensao.evalmetrics.model;

import java.io.Serializable;
import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
//Mapping la table utilisateurs et le bean User
@Entity
@Table(name="utilisateurs")
public class User implements Serializable{
	
	private static final long serialVersionUID = -8767337896773261247L;

	private Long id;
	private String nom;
	private String prenom;
	private String emailId;
	private String telephone;
	private String statut;
	private String userLogin;
	private String userPassword;

	
	private Date created;

	@Id
	@GeneratedValue
	@Column(name="id")
	public Long getId() {
		return id;
	}
	@Column(name="nom")
	public String getNom() {
		return nom;
	}
	@Column(name="prenom")
	public String getPrenom() {
		return prenom;
	}
	@Column(name="email")
	public String getEmailId() {
		return emailId;
	}
	@Column(name="téléphone")
	public String getTelephone() {
		return telephone;
	}
	@Column(name="statut")
	public String getStatut() {
		return statut;
	}

	@Column(name=" userLogin")
	public String getUserLogin() {
		return  userLogin;
	}
	@Column(name=" userPassword")
	public String getUserPassword() {
		return  userPassword;
	}
	@Column(name="created")
	public Date getCreated() {
		return created;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	public void setEmailId(String emailId) {
		this.emailId = emailId;
	}
	public void setStatut(String statut) {
		this.statut = statut;
	}
	public void setTelephone(String tel) {
		this.telephone = tel;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public void setUserLogin(String userLogin) {
		this.userLogin = userLogin;
	}
	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}
}
